<template>
    <div id="app">
        <router-view/>
    </div>
</template>

<script>
export default {
    name: 'App',
    mounted() {
        // window.addEventListener('unload',this.saveState);
        // console.log(localStorage.getItem('state'))
        console.log(this.$store.state)
    },
    methods: {
        saveState() {
            localStorage.setItem('state', JSON.stringify(this.$store.state))
        }
    }
}
</script>

<style lang="scss">
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #d6e9ff;
    transition: all 300ms;
    font-family: Poppins;
}

/*美化webkit内核滚动条*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;

}

::-webkit-scrollbar-thumb {
    background-color: #a09d9d;
    border-radius: 10px;
}


</style>
